import tornado


def make_app():
    return tornado.web.Application([
        #此处写入映射
    ],
        static_path="C:\\www\\static"
    )



#----------------------------------

import os
import tornado


def make_app():
    return tornado.web.Application([
        #此处写入映射
    ],
        static_path=os.path.join(os.path.dirname(__file__),'static')
    )


#------------------------------------

def make_app():
    return tornado.web.Application([
        #此处写入映射

        #这里配置了3个StaticFileHandler
        (r'/css/(.*)',tornado.web.StaticFileHandler,{'path':'assets/css'}),
        (r'/images/png/(.*)',tornado.web.StaticFileHandler,{'path':'assets/image'}),
        (r'/js/(.*)',tornado.web.StaticFileHandler,{'path':'assets/js','default_filename':'templates/index.html'}),
    ],
        static_path=os.path.join(os.path.dirname(__file__),'static')
    )